from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from info import create_app,db
from info import models
from flask_wtf.csrf import generate_csrf

app = create_app("development")
manager = Manager(app)
# 数据库Migrate迁移
Migrate(app, db)
# 添加迁移命令为db
manager.add_command("db", MigrateCommand)


if __name__ == '__main__':
    manager.run()
